package com.yuanian.timingwheel.model.task.base;

import java.io.Serializable;

/**
 * 任务执行结果
 */
public class TaskExecutionResult implements Serializable {
    //是否成功
    private boolean isSuccess;

    //异常信息
    private String exceptionMsg;

    //返回结果
    private Object result;

    public TaskExecutionResult(boolean isSuccess, String exceptionMsg) {
        this.isSuccess = isSuccess;
        this.exceptionMsg = exceptionMsg;
    }

    public boolean isSuccess() {
        return isSuccess;
    }

    public void setSuccess(boolean success) {
        isSuccess = success;
    }

    public String getExceptionMsg() {
        return exceptionMsg;
    }

    public void setExceptionMsg(String exceptionMsg) {
        this.exceptionMsg = exceptionMsg;
    }

    public Object getResult() {
        return result;
    }

    public void setResult(Object result) {
        this.result = result;
    }
}
